package ucm;

import model.Flight;
/**
 * UCEditFlight
 *
 * Primary Actor: User
 * Goal: Edit Flight
 * Precondition: Connected to database. Flight exists on database. Manager is logged on.
 * Postcondition: Flight is updated in database
 *
 * @author Tobias Robinson
 */

public class UCEditFlight {

    public UCEditFlight() {
        run();
    }
    /**
     * 1. Actor selects Edit Flight.
     * 2. The system requests the actor to enter flight info.
     * 4. System verifies user input.
     * 5. System updates Flight in database.
     * 6. System notifies actor flight has been deleted.
     */
    public void run() {
        Flight.editFlights();
    }
}
